// initial state
const state = () => ({
    timelineTask: []
})

// getters
const getters = {}

// actions
const actions = {
    async getTimelineTask ({ commit }) {
        const timelineTask = await window.electronAPI.getTimelineTask();
        commit('setTimelineTask', timelineTask)
    }
}

// mutations
const mutations = {
    setTimelineTask (state, timelineTask) {
        state.timelineTask = timelineTask;
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}